home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
-
- <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
- <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
- <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
-
- <!DOCTYPE page [
- <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd">
- %browserDTD;
- <!ENTITY % textcontextDTD SYSTEM "chrome://global/locale/textcontext.dtd">
- %textcontextDTD;
- <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
- %globalDTD;
- ]>
-
- <page id="webpanels-window"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- onload="load()" onunload="unload()">
- <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
- <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
- <script type="application/x-javascript" src="chrome://global/content/inlineSpellCheckUI.js"/>
- <script type="application/x-javascript" src="chrome://browser/content/nsContextMenu.js"/>
- <script type="application/x-javascript" src="chrome://browser/content/web-panels.js"/>
-
- <stringbundleset id="stringbundleset">
- <stringbundle id="bundle_browser" src="chrome://browser/locale/browser.properties"/>
- </stringbundleset>
-
- <broadcasterset id="mainBroadcasterSet">
- <broadcaster id="isFrameImage"/>
- </broadcasterset>
-
- <commandset id="mainCommandset">
- <command id="Browser:Back"
- oncommand="getPanelBrowser().webNavigation.goBack();"
- disabled="true"/>
- <command id="Browser:Forward"
- oncommand="getPanelBrowser().webNavigation.goForward();"
- disabled="true"/>
- <command id="Browser:Stop" oncommand="PanelBrowserStop();"/>
- <command id="Browser:Reload" oncommand="PanelBrowserReload();"/>
- </commandset>
-
- <popupset id="mainPopupSet">
- <popup id="contentAreaContextMenu"
- onpopupshowing="if (event.target != this)
- return true;
- gContextMenu = new nsContextMenu(this, getPanelBrowser());
- return gContextMenu.shouldDisplay;"
- onpopuphiding="if (event.target == this)
- gContextMenu = null;">
-
- <menuitem id="spell-no-suggestions"
- disabled="true"
- label="&spellNoSuggestions.label;"/>
- <menuitem id="spell-add-to-dictionary"
- label="&spellAddToDictionary.label;"
- accesskey="&spellAddToDictionary.accesskey;"
- oncommand="InlineSpellCheckerUI.addToDictionary();"/>
- <menuseparator id="spell-suggestions-separator"/>
- <menuitem id="context-openlink"
- label="&openLinkCmd.label;"
- accesskey="&openLinkCmd.accesskey;"
- oncommand="gContextMenu.openLink();"/>
- <menuitem id="context-openlinkintab"
- label="&openLinkCmdInTab.label;"
- accesskey="&openLinkCmdInTab.accesskey;"
- oncommand="gContextMenu.openLinkInTab();"/>
- <menuseparator id="context-sep-open"/>
- <menuitem id="context-bookmarklink"
- label="&bookmarkThisLinkCmd.label;"
- accesskey="&bookmarkThisLinkCmd.accesskey;"
- oncommand="gContextMenu.bookmarkLink();"/>
- <menuitem id="context-savelink"
- label="&saveLinkCmd.label;"
- accesskey="&saveLinkCmd.accesskey;"
- oncommand="gContextMenu.saveLink();"/>
- <menuitem id="context-sendlink"
- label="&sendLinkCmd.label;"
- accesskey="&sendLinkCmd.accesskey;"
- oncommand="gContextMenu.sendLink();"/>
- <menuitem id="context-copyemail"
- label="©EmailCmd.label;"
- accesskey="©EmailCmd.accesskey;"
- oncommand="gContextMenu.copyEmail();"/>
- <menuitem id="context-copylink"
- label="©LinkCmd.label;"
- accesskey="©LinkCmd.accesskey;"
- oncommand="goDoCommand('cmd_copyLink');"/>
- <menuseparator id="context-sep-copylink"/>
- <menuitem id="context-showimage"
- label="&showImageCmd.label;"
- accesskey="&showImageCmd.accesskey;"
- oncommand="gContextMenu.showImage();"/>
- <menuitem id="context-viewimage"
- label="&viewImageCmd.label;"
- accesskey="&viewImageCmd.accesskey;"
- oncommand="gContextMenu.viewImage(event);"
- onclick="checkForMiddleClick(this, event);"/>
- <menuitem id="context-copyimage-contents"
- label="©ImageContentsCmd.label;"
- accesskey="©ImageContentsCmd.accesskey;"
- oncommand="goDoCommand('cmd_copyImageContents');"/>
- <menuitem id="context-copyimage"
- label="©ImageCmd.label;"
- accesskey="©ImageCmd.accesskey;"
- oncommand="goDoCommand('cmd_copyImageLocation');"/>
- <menuseparator id="context-sep-copyimage"/>
- <menuitem id="context-saveimage"
- label="&saveImageCmd.label;"
- accesskey="&saveImageCmd.accesskey;"
- oncommand="gContextMenu.saveImage();"/>
- <menuitem id="context-sendimage"
- label="&sendImageCmd.label;"
- accesskey="&sendImageCmd.accesskey;"
- oncommand="gContextMenu.sendImage();"/>
- <menuitem id="context-setDesktopBackground"
- label="&setDesktopBackgroundCmd.label;"
- accesskey="&setDesktopBackgroundCmd.accesskey;"
- oncommand="gContextMenu.setDesktopBackground();"/>
- <menuitem id="context-blockimage"
- type="checkbox"
- accesskey="&blockImageCmd.accesskey;"
- oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') == 'true');"/>
- <menuitem id="context-back"
- label="&backCmd.label;"
- accesskey="&backCmd.accesskey;"
- chromedir="&locale.dir;"
- command="Browser:Back"/>
- <menuitem id="context-forward"
- label="&forwardCmd.label;"
- accesskey="&forwardCmd.accesskey;"
- chromedir="&locale.dir;"
- command="Browser:Forward"/>
- <menuitem id="context-reload"
- label="&reloadCmd.label;"
- accesskey="&reloadCmd.accesskey;"
- command="Browser:Reload"/>
- <menuitem id="context-stop"
- label="&stopCmd.label;"
- accesskey="&stopCmd.accesskey;"
- command="Browser:Stop"/>
- <menuseparator id="context-sep-stop"/>
- <menuitem id="context-bookmarkpage"
- label="&bookmarkPageCmd2.label;"
- accesskey="&bookmarkPageCmd2.accesskey;"
- oncommand="gContextMenu.bookmarkThisPage();"/>
- <menuitem id="context-savepage"
- label="&savePageCmd.label;"
- accesskey="&savePageCmd.accesskey2;"
- oncommand="gContextMenu.savePageAs();"/>
- <menuitem id="context-sendpage"
- label="&sendPageCmd.label;"
- accesskey="&sendPageCmd.accesskey;"
- oncommand="gContextMenu.sendPage();"/>
- <menuseparator id="context-sep-viewbgimage"/>
- <menuitem id="context-viewbgimage"
- label="&viewBGImageCmd.label;"
- accesskey="&viewBGImageCmd.accesskey;"
- oncommand="gContextMenu.viewBGImage(event);"
- onclick="checkForMiddleClick(this, event);"/>
- <menuitem id="context-undo"
- label="&undoCmd.label;"
- accesskey="&undoCmd.accesskey;"
- command="cmd_undo"/>
- <menuseparator id="context-sep-undo"/>
- <menuitem id="context-cut"
- label="&cutCmd.label;"
- accesskey="&cutCmd.accesskey;"
- command="cmd_cut"/>
- <menuitem id="context-copy"
- label="©Cmd.label;"
- accesskey="©Cmd.accesskey;"
- command="cmd_copy"/>
- <menuitem id="context-paste"
- label="&pasteCmd.label;"
- accesskey="&pasteCmd.accesskey;"
- command="cmd_paste"/>
- <menuitem id="context-delete"
- label="&deleteCmd.label;"
- accesskey="&deleteCmd.accesskey;"
- command="cmd_delete"/>
- <menuseparator id="context-sep-paste"/>
- <menuitem id="context-selectall"
- label="&selectAllCmd.label;"
- accesskey="&selectAllCmd.accesskey;"
- command="cmd_selectAll"/>
- <menuseparator id="context-sep-selectall"/>
- <menuitem id="context-keywordfield"
- label="&keywordfield.label;"
- accesskey="&keywordfield.accesskey;"
- oncommand="AddKeywordForSearchField();"/>
- <menuitem id="context-searchselect"
- accesskey="&search.accesskey;"
- oncommand="BrowserSearch.loadSearch(getBrowserSelection(), true);"/>
- <menuseparator id="frame-sep"/>
- <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
- <menupopup>
- <menuitem id="context-showonlythisframe"
- label="&showOnlyThisFrameCmd.label;"
- accesskey="&showOnlyThisFrameCmd.accesskey;"
- oncommand="gContextMenu.showOnlyThisFrame();"/>
- <menuitem id="context-openframe"
- label="&openFrameCmd.label;"
- accesskey="&openFrameCmd.accesskey;"
- oncommand="gContextMenu.openFrame();"/>
- <menuitem id="context-openframeintab"
- label="&openFrameCmdInTab.label;"
- accesskey="&openFrameCmdInTab.accesskey;"
- oncommand="gContextMenu.openFrameInTab();"/>
- <menuseparator/>
- <menuitem id="context-reloadframe"
- label="&reloadFrameCmd.label;"
- accesskey="&reloadFrameCmd.accesskey;"
- oncommand="gContextMenu.reloadFrame();"/>
- <menuseparator/>
- <menuitem id="context-bookmarkframe"
- label="&bookmarkThisFrameCmd.label;"
- accesskey="&bookmarkThisFrameCmd.accesskey;"
- oncommand="gContextMenu.addBookmarkForFrame();"/>
- <menuitem id="context-saveframe"
- label="&saveFrameCmd.label;"
- accesskey="&saveFrameCmd.accesskey;"
- oncommand="saveDocument(gContextMenu.target.ownerDocument);"/>
- <menuseparator/>
- <menuitem id="context-printframe"
- label="&printFrameCmd.label;"
- accesskey="&printFrameCmd.accesskey;"
- oncommand="gContextMenu.printFrame();"/>
- <menuseparator/>
- <menuitem id="context-viewframesource"
- label="&viewFrameSourceCmd.label;"
- accesskey="&viewFrameSourceCmd.accesskey;"
- oncommand="gContextMenu.viewFrameSource();"
- observes="isFrameImage"/>
- <menuitem id="context-viewframeinfo"
- label="&viewFrameInfoCmd.label;"
- accesskey="&viewFrameInfoCmd.accesskey;"
- oncommand="gContextMenu.viewFrameInfo();"/>
- </menupopup>
- </menu>
- <menuseparator id="context-sep-properties"/>
- <menuitem id="context-viewpartialsource-selection"
- label="&viewPartialSourceForSelectionCmd.label;"
- accesskey="&viewPartialSourceCmd.accesskey;"
- oncommand="gContextMenu.viewPartialSource('selection');"
- observes="isImage"/>
- <menuitem id="context-viewpartialsource-mathml"
- label="&viewPartialSourceForMathMLCmd.label;"
- accesskey="&viewPartialSourceCmd.accesskey;"
- oncommand="gContextMenu.viewPartialSource('mathml');"
- observes="isImage"/>
- <menuitem id="context-viewsource"
- label="&viewPageSourceCmd.label;"
- accesskey="&viewPageSourceCmd.accesskey;"
- oncommand="BrowserViewSourceOfDocument(gContextMenu.browser.contentDocument);"
- observes="isImage"/>
- <menuitem id="context-viewinfo"
- label="&viewPageInfoCmd.label;"
- accesskey="&viewPageInfoCmd.accesskey;"
- oncommand="gContextMenu.viewInfo();"/>
- <menuitem id="context-metadata"
- label="&metadataCmd.label;"
- accesskey="&metadataCmd.accesskey;"
- oncommand="gContextMenu.showMetadata();"/>
- <menuseparator id="spell-separator"/>
- <menuitem id="spell-check-enabled"
- label="&spellCheckEnable.label;"
- type="checkbox"
- accesskey="&spellCheckEnable.accesskey;"
- oncommand="InlineSpellCheckerUI.toggleEnabled();"/>
- <menuitem id="spell-add-dictionaries-main"
- label="&spellAddDictionaries.label;"
- accesskey="&spellAddDictionaries.accesskey;"
- oncommand="gContextMenu.addDictionaries();"/>
- <menu id="spell-dictionaries"
- label="&spellDictionaries.label;"
- accesskey="&spellDictionaries.accesskey;">
- <menupopup id="spell-dictionaries-menu">
- <menuseparator id="spell-language-separator"/>
- <menuitem id="spell-add-dictionaries"
- label="&spellAddDictionaries.label;"
- accesskey="&spellAddDictionaries.accesskey;"
- oncommand="gContextMenu.addDictionaries();"/>
- </menupopup>
- </menu>
- <menuseparator hidden="true" id="context-sep-bidi"/>
- <menuitem hidden="true" id="context-bidi-text-direction-toggle"
- label="&bidiSwitchTextDirectionItem.label;"
- accesskey="&bidiSwitchTextDirectionItem.accesskey;"
- command="cmd_switchTextDirection"/>
- <menuitem hidden="true" id="context-bidi-page-direction-toggle"
- label="&bidiSwitchPageDirectionItem.label;"
- accesskey="&bidiSwitchPageDirectionItem.accesskey;"
- oncommand="gContextMenu.switchPageDirection();"/>
- </popup>
- </popupset>
-
- <commandset id="editMenuCommands"/>
- <browser id="web-panels-browser" persist="cachedurl" type="content" flex="1"
- context="contentAreaContextMenu"
- onclick="return window.parent.contentAreaClick(event, true);"/>
- </page>
-